package com.wechatpay.v3.vo;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author liuyi <liuy@pvc123.com>
 * @since 2021/8/5
 */
public class RefundOrderVo implements Serializable {

    /** 原支付交易对应的商户订单号 */
    private String outTradeNo;
    /** 商户系统内部的退款单号，商户系统内部唯一 */
    private String outRefundNo;
    /** 退款原因,会在下发给用户的退款消息中体现退款原因 */
    private String reason;
    /** 异步接收微信支付退款结果通知的回调地址,如果参数中传了notify_url，则商户平台上配置的回调地址将不会生效，优先回调当前传的这个地址 */
    private String notifyUrl;
    /** 退款金额,不能超过原订单支付金额，元 */
    private BigDecimal refund;
    /** 原支付交易的订单总金额，元 */
    private BigDecimal total;

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public RefundOrderVo setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
        return this;
    }

    public String getOutRefundNo() {
        return outRefundNo;
    }

    public RefundOrderVo setOutRefundNo(String outRefundNo) {
        this.outRefundNo = outRefundNo;
        return this;
    }

    public String getReason() {
        return reason;
    }

    public RefundOrderVo setReason(String reason) {
        this.reason = reason;
        return this;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public RefundOrderVo setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
        return this;
    }

    public BigDecimal getRefund() {
        return refund;
    }

    public RefundOrderVo setRefund(BigDecimal refund) {
        this.refund = refund;
        return this;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public RefundOrderVo setTotal(BigDecimal total) {
        this.total = total;
        return this;
    }
}
